package work03;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class word04_ {
    public static void main(String[] args) throws IOException {
        Properties properties=new Properties();

        properties.load(new FileReader("src\\scratch.txt"));
        properties.list(System.out);
        String name=properties.getProperty("name")+"";
        int age=Integer.parseInt(properties.getProperty("age"));
        String color=properties.getProperty("color")+"";
        Dog dog=new Dog(name,age,color);
        System.out.println(dog);
    }
}
